package com.ky.gp.app.controller;

import com.ky.common.vo.R;
import com.ky.gp.app.service.BrowsingHistoryFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/browsingHistory")
public class BrowsingHistoryController {
    @Autowired
    private BrowsingHistoryFeign browsingHistoryFeign;
    @RequestMapping("/findAll")
    public R findAll(){
        return browsingHistoryFeign.findAll();
    }
    @RequestMapping("/deleteById")
    public R deleteById(@RequestParam("historyId") Integer historyId){
        return browsingHistoryFeign.deleteById(historyId);
    }
}
